var app = getApp();
Component({
  mixins: [],
  data: {
    imgHead:'https://rhi0.xiyun.net/zhuandian/image/',
  },
  props: {
    menu:{
      type:Object,
      value:{}
    },
  },
  didMount() {},
  didUpdate() {},
  didUnmount() {},
  methods: {
    goOther(e){
      let data = e.currentTarget.dataset;
      if(data.num == 8){
        my.navigateTo({
          url:data.link
        })
      }else{
        if(app.globalData.token){
          my.navigateTo({
            url:data.link
          })
        }else{
          this.props.onLogin();
        }
      }
    }
  },
});
